package com.hankol.feature_wine_meal.adapter

import com.baselibrary.utils.GlideUtils
import com.baselibrary.view.RoundCornerImageView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.hankol.feature_wine_meal.R
import com.hankol.feature_wine_meal.bean.FoodDetailsBean

/**
 * @author: 关忆北、
 * @date: 2022/6/15
 * @Des：
 */
class EliteRecommendAdapter : BaseQuickAdapter<FoodDetailsBean, BaseViewHolder>(R.layout.item_elite_food) {
    override fun convert(helper: BaseViewHolder, item: FoodDetailsBean) {
        val mRoundEliteFoodCover = helper.getView<RoundCornerImageView>(R.id.round_eliteFood_cover)
        GlideUtils.loadImg_101(mContext, item.cover, mRoundEliteFoodCover)
        helper.setText(R.id.tv_eliteFood_name, item.name)
                .setText(R.id.tv_eliteFood_introduce, "${item.nanYiDu} | ${item.cookTime}")
    }
}